<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>allstudent</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style>
		.datalist{border:1px solid #0058a3;	/* 表格边框 */
							font-family:Arial;
							border-collapse:collapse;	/* 边框重叠 */
							background-color:#eaf5ff;	/* 表格背景色 */
							font-size:18px; }
							
		.datalist caption{padding-bottom:5px;
							font:bold 1.4em;  /*字体大小*/ 51页
							text-align:left; }
							
		.datalist th{  border:1px solid #0058a3;	/* 行名称边框 */
							background-color:#4bacff;	/* 行名称背景色 */
							color:#FFFFFF;		/* 行名称颜色 */
							font-weight:bold;
							padding-top:4px; padding-bottom:4px;
							padding-left:12px; padding-right:12px;
							text-align:center; }
		
		.datalist td{ border:1px solid #0058a3;	/* 单元格边框 */
							text-align:left;
							padding-top:4px; padding-bottom:4px;
							padding-left:10px; padding-right:10px; }

		.datalist tr.altrow{ background-color:#c7e5ff; }


		
		</style>
		<script type="text/javascript" src="/Test/js/jquery.js"></script>
		<script type="text/javascript" src="/Test/js/teacher/teaFindstu.js"></script>
  </head>
  
  <body>
  <center>
    	<a href="javascrip:void(0)" id="fuzzyQuery">模糊查询</a>
    	<form action="findspecialstu" method="post">
    		<table id="fuzzyTable">
    			<tr>
    				<td>请输入学生ID：<input type="text" id="stuid" name="stuID"/ ></td>
    			</tr>
    			<tr>
    				<td><input type="button" id="fuzzyquery" value="模糊查询"/></td>
    			</tr>
    		</table>
    	</form>
    	
    	<a href="javascrip:void" id="refinedQuery">精确查询</a>
    	<!--  <form action="findrefinedstu" method="post">-->
    		<table id="refinedTable">
    			<tr>
    				<td>请输入学生ID：<input type="text" id="id" name="student.stuUserID"/>	
    			</tr>
    			<tr>
    				<td>请输入学生姓名：<input type="text" id="stuname" name="student.stuName"/>
    			</tr>
    			<tr>
    				<td>请输入学生班级：<input type="text" id="stuclass" name="student.belongclass"/>
    			</tr>
    			<tr>
    				<td>请输入学生专业：<input type="text" id="stumajor" name="student.major"/></td>
    			</tr>
    			<tr>
    				<td><input type="button" id="refinedquery" value="精确查询"></td>
    			</tr>
    		</table>
    	
    	
    	<table class="datalist">
	    <tr>
	    	<th>I D</th>
	    	<th>姓名</th>
	    	<th>班级</th>
	    	<th>邮箱</th>
	    	<th>专业</th>
	    	<th>操作</th>
	    </tr>
	    <s:iterator value="studentlist" status="index" >
	   	<tr>
	   	<td><s:property value="stuUserID"/></td>
	   	<td><s:property value="stuName"/></td>
	   	<td><s:property value="belongclass"/></td>
	   	<td><s:property value="stuEmail"/></td>
	   	<td><s:property value="major"/></td>
	   	<td><a href="javascrip:void(0)" class="delete" name=${stuUserID} >删除用户</a></td>
	   	<!--  <td><a href="deleteS.action?id=${stuUserID}">删除用户</a></td>	-->				
	   	</tr>
	   	</s:iterator>
	   	</table>
	   
	   	
    </center>
 
  </body>
</html>
